package knu;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.Vector;

/**
 * Created by Ray on 2014-12-09.
 */
public class Servlet extends javax.servlet.http.HttpServlet {
    protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException {
        request.setCharacterEncoding("euc-kr");
        response.setContentType("text/html;charset=euc-kr");
        response.getWriter().println("hello world");

        PrintWriter out= response.getWriter();
        out.print("asdasd");
        out.print("<html> <head><title>제목</title></head> <body>내용을 입력해 봅시다</body></html> ");

    }

    protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException {

    }
}
